package com.morizhang.merchanmanager.api.bean;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

@Data
public class ErrorDefinition {
    private String errorCode;
    private String errorClass;
    private String errorName;
    private String errorMessage;

    public ErrorDefinition() {
        super();
    }

    public ErrorDefinition(JSONObject constructor) {
        this.errorCode = constructor.getString("errorCode");
        this.errorClass = constructor.getString("errorClass");
        this.errorName = constructor.getString("errorName");
        this.errorMessage = constructor.getString("errorMessage");
    }
}
